package cn.ac.big.bigd.util;

/**
 * Status包括:
 Deleted（删除）
 Unfinished(系统提交未完成),
 Waiting(系统提交完成，文件尚未通过ftp提交完成)
 Submitted(系统及文件提交完成),
 Pending(数据待处理),
 Processing(数据正在处理),
 Error(数据处理中发现错误，并发送错误报告),
 Sucessful(成功提交待发布),
 Released(已发布)

 */
public class Status {
    public static final int STEP_ONE = 11;
	public static final int STEP_TWO = 12;
	public static final int STEP_THREE = 13;
	public static final int STEP_FOUR = 14;
	public static final int STEP_FIVE = 15;
	public static final int STEP_SIX = 16;




	public static final int RELEASED = 1;
	public static final int WAITING = 2;
	public static final int PENDING = 3;
	public static final int PROCESSING = 4;
	public static final int ERROR = 5;
	public static final int SUCCESSFUL = 6;

	public static final int SUBMITTED = 7;//暂时没用到


/*	public static void main(String[] args) {
		System.out.println(1);
		System.out.println(getName(1));
	}*/
	public static String getName(int index) {
		switch (index) {
			case STEP_ONE:
				return "Unfinished Step 1";
			case STEP_TWO:
				return "Unfinished Step 2";
			case STEP_THREE:
				return "Unfinished Step 3";
			case STEP_FOUR:
				return "Unfinished Step 4";
			case STEP_FIVE:
				return "Unfinished Step 5";
			case STEP_SIX:
				return "Unfinished Step 6";
			case SUBMITTED:
				return "Submitted";
			case WAITING:
				return "Waiting for files";
			case PENDING:
				return "Pending";
			case PROCESSING:
				return "Processing";
			case ERROR:
				return "ERROR";
			case SUCCESSFUL:
				return "SUCCESSFUL";
			case RELEASED:
				return "RELEASED";
			default : return "";

		}
	}


/*	STEP_ONE("Unfinished Step 1",Status.STEP_ONE_INDEX),
	STEP_TWO("Unfinished Step 2",12),
	STEP_THREE("Unfinished Step 3",13),
	STEP_FOUR("Unfinished Step 4",14),
	STEP_FIVE("Unfinished Step 5",15),
	STEP_SIX("Unfinished Step 6",16),
	SUBMITTED("SUBMITTED",7),
	RELEASED("RELEASED",1),
	WAITING("WAITING",2),
	PENDING("PENDING",3),
	PROCESSING("PROCESSING",4),
	ERROR("ERROR",5),
	SUCESSFUL("SUCESSFUL",6);*/

	/*// 成员变量
	private String name;
	private int index;
	// 构造方法
	private Status(String name, int index) {
		this.name = name;
		this.index = index;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}*/

}
